import request from '@/utils/request'

// 获取菜品排行榜
export const getDishRankingAPI = (page=1,pageSize=10,reset=false) => {
  return request({
    url: '/user/dish/rank',
    method: 'GET',
    data:{
      page,
      pageSize,
      reset
    }
  })
}

// 获取商家排行榜
export const getMerchantRankingAPI = (page=1,pageSize=10,reset=false) => {
  return request({
    url: '/user/merchant/rank',
    method: 'GET',
    data:{
      page,
      pageSize,
      reset
    }
  })
}

// 获取热量排行榜
export const getHeatRankingAPI = (page,pageSize,reset) => {
  return request({
    url: '/user/dish/calorieRank',
    method: 'GET',
    data: {
      page,
      pageSize,
      reset
    }
  })
}